#!/bin/sh

echo "###############################################################################" >/dev/null
echo "# Script Summary:                                                             #" >/dev/null
echo "# Author:                  yu.zuo                                             #" >/dev/null
echo "# Create Date:             2020.05.23                                         #" >/dev/null
echo "# Update Date:             2020.05.23                                         #" >/dev/null
echo "# Script version:          1.0.0                                              #" >/dev/null
echo "# Url: https://gitee.com/asteriskoschinazuo/c_library_build                   #" >/dev/null
echo "#                                                                             #" >/dev/null
echo "# Brief introduction:                                                         #" >/dev/null
echo "# Declare test script                                                         #" >/dev/null
echo "#                                                                             #" >/dev/null
echo "# Prerequisites:                                                              #" >/dev/null
echo "# GNU bash (version 3.2.57 test success on macOS)                             #" >/dev/null
echo "#                                                                             #" >/dev/null
echo "# Reference:                                                                  #" >/dev/null
echo "# https://blog.csdn.net/dongwuming/article/details/50605911                   #" >/dev/null
echo "###############################################################################" >/dev/null

function enable_debug() {
    PS4=':${LINENO}+'
    set -x
}

# Whether to enable debugging or not
enable_debug

source ./sub/test_configure.sh --prefix="/usr/bin"

# Whether to enable debugging or not
# enable_debug

# show_help
# echo $dep
# echo $LIBRARY_LIST
# is_in "123" $LIBRARY_LIST && echo "true" || echo "false"
# check_cppflags -D_FILE_OFFSET_BITS=64
# check_builtin rdtsc    intrin.h   "__rdtsc()"
# die "haha"
# cleanws "haha a//haha"
# map 'eval ${v}_lalalal=inline_asm' armv5te armv6 armv6t2 armv8 neon vfp vfpv3 setend
# sanitize_var_name "asd=*&^b_123"

read -n1 -p "any key..."
